package com.student.liu.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.student.liu.entity.UserReceiveraddress;

import java.util.Map;

/**
 * 用户收货地址 服务接口
 */
public interface IUserReceiveraddressService extends IService<UserReceiveraddress> {
    /**
     * 添加地址
     * @param userReceiveraddress
     */
    void address(UserReceiveraddress userReceiveraddress);

    /**
     * 查询已有
     */
    IPage<Map<String,Object>> addressPage(Integer pageIndex, Integer pageSize);
    /**
     * 删除地址
     */
    void remove(Integer id);
}
